<include file="Public/header"/>	 
<body>
<div class="tab_nav tab_nav_none">
    <div class="header">
	<a href="javascript:void(0);" onClick="javascript:history.go(-1);" class="header_l"><i class="fa fa-angle-left"></i></a>
      <div class="h-mid">退换货   </div>
	<a href="{:U('Index/index')}" class="header_r"><i class="fa fa-home"></i></a>
	  
    </div>
</div>
<include file="Public/menu"/>
	<div class="main_thh">
    <volist name="list" id="item">     
		<table width="95%" border="1" cellspacing="0" cellpadding="0">
			<tr style="display:none;">
				<td>返修/退换货编号</td>
				<td>{$item.id}</td>
			</tr>
			<tr>
				<td>订单编号</td>
				<td><a target="_blank" href="{:U('User/order_detail',array('id'=>$item['order_id']))}">{$item.order_sn}</a></td>
			</tr>
			<tr>
				<td>商品名称</td>
				<td><a href="{:U('Goods/goodsInfo',array('id'=>$item[goods_id]))}" target="_blank">{$goodsList[$item[goods_id]]}</a></td>
			</tr>
			<tr>
				<td>申请时间</td>
				<td>{$item.addtime|date="Y-m-d",###}</td>
			</tr>
			<tr>
				<td>状态</td>
				<td>
                    <if condition="$item['status'] eq 0">待客服处理</if>
                    <if condition="$item['status'] eq 1">客服处理中</if>
                    <if condition="$item['status'] eq 2">已完成</if>                
                </td>
			</tr>
			<tr>
				<td class="check_but_thh" colspan="2">
					<div>
						<a href="{:U('User/return_goods_info',array('id'=>$item[id]))}">查看</a>
					</div>
				</td>
			</tr>
		</table>
	</volist> 	 
    <empty name="list">
        <div id="list_0_0" class="font12">您没有任何售后数据哦！</div>
    </empty>    
	</div>
<notempty name="list">
   <div id="getmore" style="font-size:.24rem;text-align: center;color:#888;padding:.25rem .24rem .4rem; clear:both">
  		<a href="javascript:void(0)" onClick="ajax_sourch_submit()">点击加载更多</a>
  </div>  
</notempty>         
<script>
var  page = 1;
 /*** ajax 提交表单 查询订单列表结果*/  
 function ajax_sourch_submit()
 {	 	 	 
        page += 1;
		$.ajax({
			type : "GET",
			url:"/index.php?m=Mobile&c=User&a=return_goods_list&is_ajax=1&p="+page,//+tab,									
//			url:"{:U('Mobile/User/return_goods_list',null,'')}/is_ajax/1/p/"+page,//+tab,
//			data : $('#filter_form').serialize(),// 妳的formid 搜索表单 序列化提交
			success: function(data)
			{
				if($.trim(data) == '')
					$('#getmore').hide();
				else
				    $(".main_thh").append(data);
			}
		}); 
 } 
</script>
    
<include file="Public/footer_nav"/>
</body>
</html>